<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://java.fckeditor.net" prefix="FCK"%>

<!DOCTYPE HTML>
<html>
	<head>
		<title>更新文章</title>
	</head>

	<body>
	 <div align="center">
		<s:form action="updateNews" method="POST" enctype="multipart/form-data" >
			<s:hidden name="id"></s:hidden>
			<table border="0" >
			
				<tr>
					<s:textfield label="文章标题" name="news.title"></s:textfield>
				</tr>
				<tr>
					<s:select label="类型" name="news.categoryId" list="newsCategoryMap"></s:select>
				</tr>
				<tr>
					<s:textfield label="作者" name="news.author"></s:textfield>
				</tr>
				<tr>
					<s:textarea label="文章概要" name="news.outline" cols="60" rows="10"></s:textarea>
				</tr>
				<tr>
					<s:textfield label="关键词" name="news.keyWords"></s:textfield>
				</tr>
				<tr>
					<s:file name="doc" label="图片" />
				</tr>
				<tr>
					<td> 内容：</td>
					<td>
					<FCK:editor instanceName="news.content" width="600" height="400"
						toolbarSet="Default">
						<jsp:attribute name="value">
							${news.content}
              			  </jsp:attribute>
					</FCK:editor>
					</td>
				</tr>
				<tr>
					<td colspan="2">
						<s:submit value="保存"></s:submit>
					</td>
				</tr>
			</table>
		</s:form>
		</div>
	</body>
</html>
